// ==UserScript==
// @name            totheglory.im
// @namespace       https://gitee.com/xfun123/soul5236
// @version         1.0
// @author          鱼米花生
// @loginURL        https://totheglory.im
// @updateURL       https://gitee.com/xfun123/soul5236/raw/master/totheglory.js
// @expire          14400e3
// @domain          totheglory.im
// ==/UserScript==

exports.run = async function() {
    var { data } = await axios.get('https://totheglory.im/attendance.php');
    if (/签到成功/.test(data)) return '签到成功';
    if (/您今天已经签到过了/.test(data)) return '今日已签';
    throw '访问失败';
};

exports.check = async function() {
    var { data } = await axios.get('https://www.pthome.net/index.php');
    return /欢迎回来/.test(data);
};